<?php
require_once (SERVER_PATH.'/model/ModelFactory.php');
class TestAppModelFactory extends ModelFactory {
	function __construct(){
		$includeModelPath=TEST_APP_PATH."/model/";
	}
	
	private static $instance;
	public static function getInstance(){
		if(!self::$instance){
			self::$instance=new TestAppModelFactory();
		}
		return self::$instance;
	}
	
	
	function createModel($modelName,$tableindex){
		if(false){
			
		}else{
			require_once ($this->includeModelPath.$modelName."Model.php");
			$model_class_instance = new ReflectionClass($modelName."Model");
	   		return $model_class_instance->newInstance();
		}
	}
}

?>